﻿<?php
/**
 * Template Name: About Template
 */ 
if($_SERVER['HTTP_X_REQUESTED_WITH']==''):
get_header(); ?>

<div id="accordion">
    <?php include_once (TEMPLATEPATH . '/inc/menu-home.php' ); ?> 
    <?php include_once (TEMPLATEPATH . '/inc/menu-news.php' ); ?>
	<?php include_once (TEMPLATEPATH . '/inc/menu-works.php' ); ?>
	<?php include_once (TEMPLATEPATH . '/inc/menu-contact.php' ); ?>
    <div class="panel active hasdata">
		<div class="pink about-menu" rel="pushstate"></div>
		<div class="panelContent p4">
<?php endif; ?>
        <?php include_once (TEMPLATEPATH . '/inc/language-nav.php' ); ?>
		<?php if($_SERVER['HTTP_X_REQUESTED_WITH']==''): ?>
			<div class="container-860"><?php endif; ?>
				<section class="container-548 about">
				<?php if (have_posts()) : while (have_posts()) : the_post(); ?>			
					<h1>ABOUT</h1>
					<div class="sticky-nav">
					<?php
						$all_about = get_pages(array(	
							'meta_key' => '_wp_page_template',
							'meta_value' => 'about-page.php'
						));
						$i = 0;
						foreach($all_about as $about): 
							$active = $about->ID == get_the_ID() ? 'class="active"' : '';
							$last = ++$i == count($all_about) ? true : false;
							echo "<a rel=\"pushstate-inline\" href=\"$about->guid\" $active >$about->post_title</a>";
							if($last == false)
								echo "<span>/</span>";
						endforeach;
					?>	
					</div>
					<?php the_post_thumbnail(); ?>  
					
					<h4><?php the_title(); ?></h4>
					<h5>WIE IS BLOOTHOOFD</h5>
					
					<?php include (TEMPLATEPATH . '/inc/share.php' ); ?>

					<div class="content"><?php the_content(); ?></div>

				<?php endwhile; endif; ?>				
				</section>				
			</div>
		<?php if($_SERVER['HTTP_X_REQUESTED_WITH']==''): ?>
		</div>    
	</div>
</div>
<?php get_footer(); 
	else:
		set_title_header();
	endif;
?>